package com.duoduo.admin.api.feign.fallback;

import java.util.List;
import java.util.Set;

import org.springframework.cloud.openfeign.FallbackFactory;

import com.duoduo.admin.api.dto.UserInfo;
import com.duoduo.admin.api.feign.SysUserFeginClient;
import com.duoduo.common.core.util.R;

public class SysUserFeginClientFallbackFactory implements FallbackFactory<SysUserFeginClient> {

	@Override
	public SysUserFeginClient create(Throwable cause) {
		
		return new SysUserFeginClient() {

			@Override
			public R<UserInfo> info(String username) {
				return R.failed();
			}

			@Override
			public R<UserInfo> infoByMobile(String phone) {
				return R.failed();
			}

			@Override
			public R<List<Long>> listUserIdByDeptIds(Set<Long> deptIds) {
				// TODO Auto-generated method stub
				return R.failed();
			}};
	}

}
